package net.oschina.app.pages;

import android.view.View;

import net.oschina.app.SoloWrap;

/**
 * Created by Aaron on 2017/10/29.
 */

public class PageNewsDetail {
    private SoloWrap soloWrap;

    public PageNewsDetail(SoloWrap soloWrap){
        this.soloWrap = soloWrap;
    }

    public View getFavoriteBtn(){
        return soloWrap.findById("net.oschina.app:id/iv_fav");
    }

    public void clickFavoriteBtn(){
        soloWrap.click(getFavoriteBtn());
    }

    public View getShareBtn(){
       return soloWrap.findById("net.oschina.app:id/iv_share");
    }

    public void clickShareBtn(){
        soloWrap.click(getShareBtn());
    }

    public void clickShareToQQ(){
        soloWrap.clickOnText("QQ");
    }

    public void clickGroupChat(){
        soloWrap.click(soloWrap.findById("com.tencent.mobileqq:id/name"));
    }

}
